@extends('layouts.admin')

@section('title', '死宅博客首页' )



@section('content')

      <!--sidebar end-->
      
      <!-- **********************************************************************************************************************************************************
      MAIN CONTENT
      *********************************************************************************************************************************************************** -->
    <section id="main-content">
        <section class="wrapper">
            <h3><i class="fa fa-angle-right"></i>权限管理</h3>


                <div class="row mt">
                    <div class="col-md-12">
                        <div class="content-panel">
                            <table class="table table-striped table-advance table-hover">
                                <h4><i class="fa fa-angle-right"></i>权限<a class="btn btn-success btn-sm " href="{{route('admin.permission.create')}}">添加权限</a></h4>

                                <hr>
                                <thead>
                                <tr>
                                    <th width="16"><label><input type="checkbox" data-role="check-all"></label></th>
                                    <th width="100">ID</th>
                                    <th><i class="fa fa-bullhorn"></i>权限唯一标识</th>
                                    <th class="hidden-phone"><i class="fa fa-question-circle"></i> 权限可读名称</th>
                                    <th><i class="fa fa-bookmark"></i> 描述</th>
                                    <th> 创建时间</th>
                                    <th></th>
                                </tr>
                                </thead>
                                <tbody>
                                @foreach($permission as $v)
                                <tr>
                                    <td><input name="ids[]" type="checkbox" class="check-box" data-role="check-item" value="{{ $v->id }}"></td>
                                    <td>{{ $v->id }}</td>
                                    <td><a href="basic_table.html#">{{$v->name}}</a></td>
                                    <td class="hidden-phone">{{$v->display_name}}</td>
                                    <td>{{$v->description}}</td>
                                    <td>{{$v->created_at}}</td>
                                      <!-- <td><span class="label label-info label-mini">Due</span></td> -->
                                    <td>
                                        <a href=""><button class="btn btn-success btn-xs"><i class="fa fa-check"></i></button></a>
                                         <a href="{{route('admin.permission.edit',[$v->id])}}" title="编辑帐号"><button class="btn btn-primary btn-xs"><i class="fa fa-pencil"></i></button></a>
                                        <a href="{{route('admin.permission.del',[$v->id])}}" data-confirm="确定要删除吗？" class="btn btn-small-del btn-small ajax-get" data-success="removeTr"><button class="btn btn-danger btn-xs"><i class="fa fa-trash-o "></i></button></a>
                                    </td>
                                </tr>
                                @endforeach
                          
                             
                           
                                </tbody>
                            </table>
                            <div class="pagination">{!! $permission->links() !!}</div>
                        </div><!-- /content-panel -->
                    </div><!-- /col-md-12 -->
                </div><!-- /row -->

        </section>
    </section>

   
    
   


@endsection